﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000D01 RID: 3329
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class PlayerBoardModuleSync : IMessage<PlayerBoardModuleSync>, IMessage, IEquatable<PlayerBoardModuleSync>, IDeepCloneable<PlayerBoardModuleSync>, IBufferMessage
	{
		// Token: 0x170029EE RID: 10734
		// (get) Token: 0x060094C5 RID: 38085 RVA: 0x0018B493 File Offset: 0x00189693
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<PlayerBoardModuleSync> Parser
		{
			get
			{
				return PlayerBoardModuleSync._parser;
			}
		}

		// Token: 0x170029EF RID: 10735
		// (get) Token: 0x060094C6 RID: 38086 RVA: 0x0018B49A File Offset: 0x0018969A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return PlayerBoardModuleSyncReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170029F0 RID: 10736
		// (get) Token: 0x060094C7 RID: 38087 RVA: 0x0018B4AC File Offset: 0x001896AC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return PlayerBoardModuleSync.Descriptor;
			}
		}

		// Token: 0x060094C8 RID: 38088 RVA: 0x0018B4B3 File Offset: 0x001896B3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public PlayerBoardModuleSync()
		{
		}

		// Token: 0x060094C9 RID: 38089 RVA: 0x0018B4D4 File Offset: 0x001896D4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public PlayerBoardModuleSync(PlayerBoardModuleSync other) : this()
		{
			this.mIDBCDIHNKM_ = other.mIDBCDIHNKM_;
			this.unlockedHeadIconList_ = other.unlockedHeadIconList_.Clone();
			this.signature_ = other.signature_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060094CA RID: 38090 RVA: 0x0018B521 File Offset: 0x00189721
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public PlayerBoardModuleSync Clone()
		{
			return new PlayerBoardModuleSync(this);
		}

		// Token: 0x170029F1 RID: 10737
		// (get) Token: 0x060094CB RID: 38091 RVA: 0x0018B529 File Offset: 0x00189729
		// (set) Token: 0x060094CC RID: 38092 RVA: 0x0018B531 File Offset: 0x00189731
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool MIDBCDIHNKM
		{
			get
			{
				return this.mIDBCDIHNKM_;
			}
			set
			{
				this.mIDBCDIHNKM_ = value;
			}
		}

		// Token: 0x170029F2 RID: 10738
		// (get) Token: 0x060094CD RID: 38093 RVA: 0x0018B53A File Offset: 0x0018973A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<HeadIconData> UnlockedHeadIconList
		{
			get
			{
				return this.unlockedHeadIconList_;
			}
		}

		// Token: 0x170029F3 RID: 10739
		// (get) Token: 0x060094CE RID: 38094 RVA: 0x0018B542 File Offset: 0x00189742
		// (set) Token: 0x060094CF RID: 38095 RVA: 0x0018B54A File Offset: 0x0018974A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public string Signature
		{
			get
			{
				return this.signature_;
			}
			set
			{
				this.signature_ = ProtoPreconditions.CheckNotNull<string>(value, "value");
			}
		}

		// Token: 0x060094D0 RID: 38096 RVA: 0x0018B55D File Offset: 0x0018975D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as PlayerBoardModuleSync);
		}

		// Token: 0x060094D1 RID: 38097 RVA: 0x0018B56C File Offset: 0x0018976C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(PlayerBoardModuleSync other)
		{
			return other != null && (other == this || (this.MIDBCDIHNKM == other.MIDBCDIHNKM && this.unlockedHeadIconList_.Equals(other.unlockedHeadIconList_) && !(this.Signature != other.Signature) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060094D2 RID: 38098 RVA: 0x0018B5D0 File Offset: 0x001897D0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.MIDBCDIHNKM)
			{
				num ^= this.MIDBCDIHNKM.GetHashCode();
			}
			num ^= this.unlockedHeadIconList_.GetHashCode();
			if (this.Signature.Length != 0)
			{
				num ^= this.Signature.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060094D3 RID: 38099 RVA: 0x0018B638 File Offset: 0x00189838
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060094D4 RID: 38100 RVA: 0x0018B640 File Offset: 0x00189840
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060094D5 RID: 38101 RVA: 0x0018B64C File Offset: 0x0018984C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Signature.Length != 0)
			{
				output.WriteRawTag(18);
				output.WriteString(this.Signature);
			}
			if (this.MIDBCDIHNKM)
			{
				output.WriteRawTag(96);
				output.WriteBool(this.MIDBCDIHNKM);
			}
			this.unlockedHeadIconList_.WriteTo(ref output, PlayerBoardModuleSync._repeated_unlockedHeadIconList_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x060094D6 RID: 38102 RVA: 0x0018B6BC File Offset: 0x001898BC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.MIDBCDIHNKM)
			{
				num += 2;
			}
			num += this.unlockedHeadIconList_.CalculateSize(PlayerBoardModuleSync._repeated_unlockedHeadIconList_codec);
			if (this.Signature.Length != 0)
			{
				num += 1 + CodedOutputStream.ComputeStringSize(this.Signature);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x060094D7 RID: 38103 RVA: 0x0018B720 File Offset: 0x00189920
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(PlayerBoardModuleSync other)
		{
			if (other == null)
			{
				return;
			}
			if (other.MIDBCDIHNKM)
			{
				this.MIDBCDIHNKM = other.MIDBCDIHNKM;
			}
			this.unlockedHeadIconList_.Add(other.unlockedHeadIconList_);
			if (other.Signature.Length != 0)
			{
				this.Signature = other.Signature;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060094D8 RID: 38104 RVA: 0x0018B786 File Offset: 0x00189986
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x060094D9 RID: 38105 RVA: 0x0018B790 File Offset: 0x00189990
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 18U)
				{
					if (num != 96U)
					{
						if (num != 122U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.unlockedHeadIconList_.AddEntriesFrom(ref input, PlayerBoardModuleSync._repeated_unlockedHeadIconList_codec);
						}
					}
					else
					{
						this.MIDBCDIHNKM = input.ReadBool();
					}
				}
				else
				{
					this.Signature = input.ReadString();
				}
			}
		}

		// Token: 0x040038DC RID: 14556
		private static readonly MessageParser<PlayerBoardModuleSync> _parser = new MessageParser<PlayerBoardModuleSync>(() => new PlayerBoardModuleSync());

		// Token: 0x040038DD RID: 14557
		private UnknownFieldSet _unknownFields;

		// Token: 0x040038DE RID: 14558
		public const int MIDBCDIHNKMFieldNumber = 12;

		// Token: 0x040038DF RID: 14559
		private bool mIDBCDIHNKM_;

		// Token: 0x040038E0 RID: 14560
		public const int UnlockedHeadIconListFieldNumber = 15;

		// Token: 0x040038E1 RID: 14561
		private static readonly FieldCodec<HeadIconData> _repeated_unlockedHeadIconList_codec = FieldCodec.ForMessage<HeadIconData>(122U, HeadIconData.Parser);

		// Token: 0x040038E2 RID: 14562
		private readonly RepeatedField<HeadIconData> unlockedHeadIconList_ = new RepeatedField<HeadIconData>();

		// Token: 0x040038E3 RID: 14563
		public const int SignatureFieldNumber = 2;

		// Token: 0x040038E4 RID: 14564
		private string signature_ = "";
	}
}
